package com.huarui.saleOrder.action;

import java.util.Map;

import org.apache.log4j.Logger;
import org.ewaf.framework.action.BaseAction;

import com.huarui.saleOrder.service.SaleOrderService;

public class SaleOrderDealAction extends BaseAction{
	
	public static final String MESS = "mess";

	private static final long serialVersionUID = -2342371967396207216L;
	
	private Logger logger = Logger.getLogger(SaleOrderDealAction.class);
	
	private SaleOrderService saleOrderService;
	
	private Integer saleOrderId;
	
	private Map<String, Object> mesMap ;
	
	public Integer getSaleOrderId() {
		return saleOrderId;
	}

	public void setSaleOrderId(Integer saleOrderId) {
		this.saleOrderId = saleOrderId;
	}

	public Map<String, Object> getMesMap() {
		return mesMap;
	}

	public void setMesMap(Map<String, Object> mesMap) {
		this.mesMap = mesMap;
	}

	public void setSaleOrderService(SaleOrderService saleOrderService) {
		this.saleOrderService = saleOrderService;
	}

	public String dealSaleOrder() {
		mesMap = this.saleOrderService.dealSaleOrder(saleOrderId);
		return MESS;
	}

}
